﻿#pragma once

#include "../MonsterObject.h"
#include "../../MirDatabase/MonsterInfo.h"
#include "../../../Shared/Enums.h"
#include "../PlayerObject.h"
#include "../../../Shared/Packet.h"
#include <vector>
#include <any>

using namespace Server::MirDatabase;
using namespace Server::MirEnvir;
namespace S = ServerPackets;

namespace Server::MirObjects::Monsters
{
    class TucsonEgg : public MonsterObject
    {
    protected:
        bool getCanMove() const override;

        TucsonEgg(MonsterInfo *info);

    public:
        void Turn(MirDirection dir) override;

        bool Walk(MirDirection dir) override;

        bool IsAttackTarget(MonsterObject *attacker) override;
        bool IsAttackTarget(PlayerObject *attacker) override;

    protected:
        void ProcessRoam() override;

        void ProcessSearch() override;

    public:
        Packet *GetInfo() override;

        int Attacked(MonsterObject *attacker, int damage, DefenceType type = DefenceType::ACAgility) override;
        int Attacked(PlayerObject *attacker, int damage, DefenceType type = DefenceType::ACAgility, bool damageWeapon = true) override;

    protected:
        void ProcessTarget() override;

        void CompleteAttack(std::vector<std::any> &data) override;

    public:
        void Die() override;

    private:
        void SpawnSlave();
    };
}
